﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_Flow_AddBangdingRole]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_Flow_AddBangdingRole];
GO
CREATE PROCEDURE [dbo].[sproc_Flow_AddBangdingRole]
    @FlowID int,
    @StepID int,
    @RoleID int
AS
BEGIN
SET NOCOUNT ON;

INSERT INTO dbo.UDS_Flow_Member_Bind (Flow_ID, Step_ID, Obj_ID, Obj_Type) VALUES(@FlowID, @StepID, @RoleID, 3 /* role */);

END
GO